﻿namespace TomatoBreak.IntegrationSpecs
{
    using NHibernate;

    using Machine.Specifications;

    using DataAccess;

    [Subject(typeof(SessionProvider))]
    public class when_getting_session : DatabaseSpec
    {
        static ISession session;

        Because of = () => session = sessionProvider.GetSession();

        It should_not_be_null = () => session.ShouldNotBeNull();
    }
}